﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Entity;
using Utils;
using Library;
using DataContext;

namespace PaymentBLL
{
    public class CtrLogItemOut
    {
        public int InsertLogItemOut(int accountId, string accountName, int accountTypeId,
            int paymentGatewayId, string paymentGatewayName, string paymentGatewayUnit,
            string paymentAccountInfo, string systemAccountInfo, int itemInId, string itemInName,
            int totalAuOut, int totalAgOut, int totalReceiveAmount, int totalVndOut, int quantity,
            int status, int? resultCode, string description, ref long? id)
        {
            return DB.PaymentInstance.uspLogItemOutInsert(accountId, accountName, accountTypeId, paymentGatewayId, paymentGatewayName,
                paymentGatewayUnit, paymentAccountInfo, systemAccountInfo, itemInId, itemInName,
                totalAuOut, totalAgOut, totalReceiveAmount, totalVndOut, quantity, status, resultCode, description, ref id);
        }
        public int UpdateLogItemOut(long id, int status, int? resultCode, string description)
        {
            if (description == string.Empty)
                description = null;
            return DB.PaymentInstance.uspLogItemOutUpdate(id, status, resultCode, description);
        }
    }
}
